package org.campuscontent.ui.multipanel;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPopupMenu;

public class UsersPanelTester extends JFrame
{
    public UsersPanelTester()
    {
        JButton jb = new JButton( "Hola" );
        
        jb.addActionListener( new ActionListener()
        {
            public void actionPerformed( ActionEvent e )
            {
                test();
                
            }
        });
        
        add( jb );
    }
    
    public void test()
    {
        JPopupMenu menu = new JPopupMenu();
        menu.insert( new UsersPanelList(), 0 );
        
        menu.show( this, 10, 10 );
    }
    
    public static void main( String[] args )
    {
        UsersPanelTester tester = new UsersPanelTester();
        tester.pack();
        tester.setVisible( true );
    }
}
